package com.tour.silvertour.Common.Exception;

/**
 * @Title: BizException
 * @Author 苗桐菲
 * @Package com.tour.silvertour.Common.Exception
 * @Date 2024/3/31 14:14
 */
public class BizException extends RuntimeException {

    private int code = 500;
    private String msg;

    public BizException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BizException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}